package com.itheima.service.mongo;

import com.itheima.domain.mongo.Comment;
import com.itheima.domain.mongo.Movement;
import com.itheima.domain.mongo.Video;
import com.itheima.vo.PageBeanVo;
import org.bson.types.ObjectId;

public interface VideoService {
    void save(Video video);

    PageBeanVo findRecommendVideoByPage(Long userId,Integer pageNum,Integer pageSize);


    /**
     * 分页查询视频评论列表
     * @param publishId
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageBeanVo findVideoCommentsByPage(ObjectId publishId, Integer pageNum, Integer pageSize);

    Video findById(ObjectId objectId);
}
